package com.tang.exception_;

public class NullPointerException_ {
    //编写一个main方法
    public static void main(String[] args) {
        String name = null;
        System.out.println(name.length());
        /*
        *
        * Exception in thread "main" java.lang.NullPointerException
        * at com.tang.exception_.NullPointerException_.main(NullPointerException_.java:7)
        * */

    }
}
